package com.vader.admin.entity.DO;

import cn.hutool.core.bean.BeanUtil;
import com.vader.admin.entity.Query.BaseUserInfoQuery;

import java.util.Date;
import java.io.Serializable;

/**
 * 用户信息表(BaseUserInfo)实体类
 *
 * @author Vader
 * @since 2021-10-06 12:46:39
 */
public class BaseUserInfo implements Serializable {
    private static final long serialVersionUID = -46653314930373096L;
    /**
     * 人员主键id
     */
    private Long id;
    /**
     * 微信昵称
     */
    private String wechatName;
    /**
     * 微信号
     */
    private String wechatId;
    /**
     * 个人简介
     */
    private String description;
    /**
     * 人员昵称
     */
    private String nickname;
    /**
     * 可提供资源
     */
    private String provider;
    /**
     * 需要资源
     */
    private String need;

    private Date createTime;

    private Date updateTime;
    /**
     * 人员类型
     */
    private Integer userType;
    /**
     * 类型级别
     */
    private String level;
    /**
     * 父级类型id
     */
    private String pid;
    /**
     * 是否注销 0：否 1：是
     */
    private Integer deleted;

    /**
     * 用户密码
     */
    private String password;

    public static BaseUserInfo from(BaseUserInfoQuery baseUserInfoQuery) {
        BaseUserInfo baseUserInfo = new BaseUserInfo();
        BeanUtil.copyProperties(baseUserInfoQuery,baseUserInfo);
        return baseUserInfo;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWechatName() {
        return wechatName;
    }

    public void setWechatName(String wechatName) {
        this.wechatName = wechatName;
    }

    public String getWechatId() {
        return wechatId;
    }

    public void setWechatId(String wechatId) {
        this.wechatId = wechatId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getNeed() {
        return need;
    }

    public void setNeed(String need) {
        this.need = need;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}

